/* Estilos base */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/Top Sales Callisto/dashboard-backend/Public/CAllisto.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 320px;
  width: 90%;
}

.hidden {
  display: none !important;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 180px;
  height: auto;
}

#pageTitle {
  font-family: 'Pacifico', cursive;
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.4;
}

.highlight {
  color: #FFD700;
}

.highlight.supervisor {
  font-family: 'Pacifico', cursive;
  font-size: 16px;
}

.emojis {
  font-size: 24px;
  margin: 10px 0;
}

.option-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.option {
  background-color: #FFD700;
  color: #000;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.option:hover {
  background-color: #FFA500;
}

#loginContainer {
  margin-top: 20px;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, select, button {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFD700;
  font-size: 16px;
}

input::placeholder {
  color: rgba(255, 215, 0, 0.5);
}

select {
  color: #FFD700;
}

select option {
  background-color: #2a2a2a;
  color: #FFD700;
}

button {
  background: #FFD700;
  color: #000000;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background: #FFA500;
}

footer {
  color: #ffffff;
  margin-top: 20px;
  font-size: 14px;
}

/* Estilos para el dropdown de Service */
#serviceDropdown {
  position: relative;
  width: 100%;
}

#serviceButton {
  background: rgba(255, 255, 255, 0.2);
  color: #FFD700;
  padding: 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 16px;
  position: relative;
}

#serviceButton::after {
  content: "▼";
  font-size: 12px;
  color: #FFD700;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

#serviceOptions {
  display: none;
  position: absolute;
  background-color: #333;
  width: 95%;
  left: 0;
  border-radius: 5px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1;
  color: #FFD700;
  padding: 8px;
  border: 1px solid #FFD700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-top: 2px;
}

.service-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  color: #FFD700;
  font-size: 13px;
  transition: background-color 0.3s ease;
  border-radius: 3px;
  cursor: pointer;
}

.service-option:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

.service-option span {
  flex: 1;
  text-align: left;
  user-select: none;
}

.service-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Estilos para el dropdown de Month */
#monthDropdown {
  position: relative;
  width: 100%;
}

#monthButton {
  background: rgba(255, 255, 255, 0.2);
  color: #FFD700;
  padding: 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 16px;
  position: relative;
}

#monthButton::after {
  content: "▼";
  font-size: 12px;
  color: #FFD700;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

#monthOptions {
  display: none;
  position: absolute;
  background-color: #333;
  width: 95%;
  left: 0;
  border-radius: 5px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 2;
  color: #FFD700;
  padding: 8px;
  border: 1px solid #FFD700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-top: 2px;
}

.month-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  color: #FFD700;
  font-size: 13px;
  transition: background-color 0.3s ease;
  border-radius: 3px;
  cursor: pointer;
}

.month-option:hover:not(.disabled) {
  background-color: rgba(255, 215, 0, 0.2);
}

.month-option span {
  flex: 1;
  text-align: left;
  user-select: none;
}

.month-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Estilo para meses deshabilitados */
.month-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.month-option.disabled input[type="checkbox"] {
  cursor: not-allowed;
  pointer-events: none;
}

.month-option.disabled span {
  color: #999999;
}

/* Estilo para el mes actual */
.month-option.current-month {
  background-color: rgba(173, 216, 230, 0.15);
}

.error-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4444;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Scrollbar personalizado para los dropdowns */
#monthOptions::-webkit-scrollbar,
#serviceOptions::-webkit-scrollbar {
  width: 6px;
}

#monthOptions::-webkit-scrollbar-track,
#serviceOptions::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#monthOptions::-webkit-scrollbar-thumb,
#serviceOptions::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 3px;
}

#monthOptions::-webkit-scrollbar-thumb:hover,
#serviceOptions::-webkit-scrollbar-thumb:hover {
  background: #FFA500;
}

/* Compatibilidad legacy */
select option:disabled {
  color: #999999;
}